package com.qing.apple.filter.bean;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class Apple implements Fruit{
	private Integer weight;//重量
	private String color; //颜色

	public Apple() {
	}

	public Apple(Integer weight, String color) {
		this.weight = weight;
		this.color = color;
	}

	public Apple(Integer weight) {
		this.weight = weight;
	}

	@Override
	public String toString() {
		return "Apple{" +
				"weight=" + weight +
				", color='" + color + '\'' +
				'}';
	}
}
